﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Popup.Master" AutoEventWireup="true"
    CodeBehind="Ter_ExitFormRequest.aspx.cs" Inherits="vHCS.K2App.MdlK2.ExitCheckList.Ver1.Ter_ExitFormRequest" %>

<%@ Register Assembly="Core.Controls" Namespace="Core.Controls.Message" TagPrefix="cc1" %>
<%@ Register Assembly="Core.Controls" Namespace="Core.Controls.Security" TagPrefix="security" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="Core.Controls" Namespace="Core.Controls.DataReader" TagPrefix="core" %>
<%@ Register Src="~/MdlK2/Controls/TS_ctrEmpHeader_Leave.ascx" TagName="EmpHeader" TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainToolbar" runat="server">
    <asp:Button ID="btnTopApprove" runat="server" Text="Gửi phê duyệt" CssClass="btnSubmit"
        OnClick="btnTopApprove_Click" ValidationGroup="Save" />
    <%--<asp:Button ID="btnTopExport" runat="server" Text="Xuất DL" CssClass="btnExport"
        OnClick="btnBottomExport_Click" />--%>
    <asp:HiddenField ID="hdfEmpId" runat="server" />
    <asp:HiddenField ID="hdfConsult" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:HiddenField ID="hdfCheckFAOther" runat="server" />
    <div class="searchWrapper">
        <uc:EmpHeader runat="server" ID="EmpHeader" OnUserChanged="EmpHeader_OnUserChanged" />
    </div>
    <div class="divClear">
    </div>
    <div class="controlWrapper">
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="lblStartDate_L" runat="server" Text="Ngày bắt đầu làm việc" /></div>
            <div class="control">
                <asp:TextBox ID="txtStartDate" runat="server" Width="100px" CssClass="inputReadOnly"
                    ReadOnly="true" /></div>
            <div class="label">
                <asp:Label ID="lblEndDate_L" runat="server" Text="Ngày làm việc cuối cùng" /></div>
            <div class="control">
                <asp:TextBox ID="txtEndDate" runat="server" Width="100px" CssClass="inputReadOnly"
                    ReadOnly="true" /></div>
        </div>
        <div class="divClear">
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label6" runat="server" Text="Email" /><span class="require">(*)</span></div>
            <div class="control">
                <asp:TextBox ID="txtEmail" runat="server" Width="90%" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="Vui lòng nhập email ngoài công ty" CssClass="validation" Display="Dynamic"
                    SetFocusOnError="true" ValidationGroup="Save">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ValidationGroup="Save"
                    ControlToValidate="txtEmail" ValidationExpression="^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$"
                    ErrorMessage="Email không hợp lệ" CssClass="validation" SetFocusOnError="true"
                    Display="Dynamic">    
                </asp:RegularExpressionValidator>
            </div>
        </div>
        
        <div class="div4Column">
            <div class="merge3">
                <span class="Bullet2"><span class="require">(*)</span><asp:Label ID="Label7" runat="server" Text="Xác nhận về việc làm thủ tục đăng ký nhận Trợ cấp thất nghiệp sau khi nghỉ việc tại VNG: " /></span>
                <asp:RadioButton ID="radBenifit_Y" runat="server" Text="Có" GroupName="Benifit" Checked="true" />
                <asp:RadioButton ID="radBenifit_N" runat="server" Text="Không" GroupName="Benifit" />
            </div>
            <div class="divClear">
            </div>
            <div id="divBenifit" style="display: none; margin-bottom:2px; margin-top:4px;">
                <span class="Bullet1"> Tham khảo thông tin tại <asp:HyperLink ID="hplLinkBenifits" runat="server" Text="link."
                    NavigateUrl="http://portal.vng.com.vn/HR/HRForm/Termination/HR-CB-DO-Unemployment%20Social%20Regulation.docx"></asp:HyperLink></span>
            </div>
        </div>
        <div class="divClear">
        </div>
        <div class="div4Column">
            <div class="merge3">
                <span class="Bullet2"> <asp:Label ID="Label8" runat="server" Text="Bạn có muốn được tư vấn chi tiết hơn về thông tin trợ cấp thất nghiệp không?" /></span>
                <asp:RadioButton ID="radConsult_Y" runat="server" Text="Có" GroupName="Consult" onclick="CheckConsult()" />
                <asp:RadioButton ID="radConsult_N" runat="server" Text="Không" GroupName="Consult" Checked="true" onclick="CheckConsult()"/>
                <div id="divConsult" style="display: none; margin-bottom:8px; margin-top:4px;">
                    <span class="Bullet1"> <asp:Label ID="lblConsult" runat="server" Text="Vui lòng liên hệ bạn <strong>$HRBP$</strong> tại phòng <strong>HR lầu 13</strong> hoặc số <strong>ext ($ext$)</strong> để được hướng dẫn." /></span>
                </div>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="divClear">
        </div>
        <div>
            <span class="Bullet2"></span> <asp:Label ID="lblNote" runat="server" Text="Để thực hiện các thủ tục nghỉ việc phải  hoàn tất các thông tin bên dưới và sự phê duyệt của các phòng ban sau đây."></asp:Label></div>
        <asp:HiddenField ID="hdfTest" runat="server" />
    </div>
    <%-- <asp:DataList ID="dtlDMExit" runat="server"  Width="100%" 
        >
    <ItemTemplate>
        <asp:Label CssClass="topicName" ID="lblTopicName" runat="server" Text=""></asp:Label>
        <div class="divSepearator"></div>
        <uc1:TER_ctrDMExit runat="server" ID="ExitControl" />
    </ItemTemplate>
</asp:DataList>--%>
<asp:Panel ID="pnlExitList" runat="server">
        <br />
        <div class="div3Column">
            <div class="merge3">
                <asp:Label ID="lblDM" runat="server" CssClass="topicName" Text="A.BÀN GIAO CÔNG VIỆC" /></div>
            <div class="divClear">
            </div>
        </div>
        <div class="divGrid">
            <telerik:RadGrid ID="dtgExitList" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                AllowMultiRowSelection="True" GridLines="None" PageSize="2" AutoGenerateColumns="False"
                DataSourceID="dtsExitList">
                <MasterTableView Width="100%">
                    <Columns>
                        <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                        <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                        <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="40%"></HeaderStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Account" HeaderText="Số tiền đưa vào quyết toán(nếu có)"
                            DataType="System.Decimal" DataFormatString="{0:###,###}" ItemStyle-HorizontalAlign="Right"
                            HeaderStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="15%"></HeaderStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridDateTimeColumn DataField="FromDate" HeaderText="Ngày cấp phát" DataType="System.DateTime"
                            DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="15%"></HeaderStyle>
                        </telerik:GridDateTimeColumn>
                        <telerik:GridBoundColumn DataField="Comment" HeaderText="Ghi chú của người phê duyệt"
                            HeaderStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="30%"></HeaderStyle>
                        </telerik:GridBoundColumn>
                    </Columns>
                    <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                        Position="Bottom" />
                </MasterTableView>
            </telerik:RadGrid>
            <core:CoreDataSource ID="dtsExitList" runat="server" SelectMethod="LoadForViewExitForm_RequestK2"
                EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" CacheExpirationPolicy="Sliding"
                MaximumRowsParameterName="">
                <SelectParameters>
                    <asp:ControlParameter Name="exitType" ControlID="hdfTest" DbType="Int64" DefaultValue="1" />
                    <asp:Parameter Name="empId" DbType="Int64" />
                </SelectParameters>
            </core:CoreDataSource>
            <div class="divClear">
            </div>
        </div>
    </asp:Panel>
    <br />
    <div class="div3Column">
            <div class="merge3">
                <asp:Label ID="Label11" CssClass="topicName" runat="server" Text="B. BÀN GIAO CHO CÁC PHÒNG BAN LIÊN QUAN" /></div>
            <div class="divClear">
            </div>
    </div>
    <div style = "margin-left:20px;">
        <asp:Panel ID="pnlAFExit" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="Labelr10" CssClass="topicName" runat="server" Text="1A. PHÒNG HÀNH CHÍNH" /></div>
                <div class="divClear">
                </div>
            </div>
            <div>
                <asp:Label ID="lblAFExit" runat="server" Text="Các tài sản này sẽ bàn giao cho <strong>$Value$</strong>"></asp:Label>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgAFExit" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" AutoGenerateColumns="False"
                    DataSourceID="dtsAFExit" OnItemDataBound="dtgAFExit_ItemDataBound">
                    <MasterTableView Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Account" HeaderText="Số tiền đưa vào quyết toán (nếu có)"
                                DataType="System.Decimal" DataFormatString="{0:###,###}" HeaderStyle-HorizontalAlign="Center"
                                ItemStyle-HorizontalAlign="Right">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="Ngày thu hồi" DataField="ToDate" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="txtRecoveryDate" HorizontalAlign="Center" Width="100%" runat="server"
                                     >
                                    </telerik:RadDatePicker>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="Comment" HeaderText="Ghi chú của người phê duyệt"
                                HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="30%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ToDate" HeaderText="Ghi chú của người phê duyệt"
                                HeaderStyle-HorizontalAlign="Center" Visible="false">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsAFExit" runat="server" SelectMethod="LoadForViewDMProperty"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" CacheExpirationPolicy="Sliding"
                    MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="typeId" ControlID="hdfTest" DbType="Int64" DefaultValue="2" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
                <div class="divClear">
                </div>
            </div>
        </asp:Panel>
    
        <asp:Panel ID="pnlAFExitOther" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="Label2" CssClass="topicName" runat="server" Text="1B. PHÒNG HÀNH CHÍNH (OTHER)" /></div>
                <div class="divClear">
                </div>
            </div>
            <div>
                <asp:Label ID="lblAFExitOther" runat="server" Text="Các tài sản này sẽ bàn giao cho <strong>$Value$</strong>"></asp:Label>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgAFExitOther" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" AutoGenerateColumns="False"
                    DataSourceID="dtsAFExitOther">
                    <MasterTableView Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Account" HeaderText="Số tiền đưa vào quyết toán (nếu có)"
                                DataType="System.Decimal" DataFormatString="{0:###,###}" HeaderStyle-HorizontalAlign="Center"
                                ItemStyle-HorizontalAlign="Right">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <%--<telerik:GridDateTimeColumn DataField="FromDate" HeaderText="Ngày bàn giao" DataType="System.DateTime"
                            DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="100px"></HeaderStyle>
                        </telerik:GridDateTimeColumn>--%>
                            <%--    <telerik:GridDateTimeColumn  DataField="ToDate" HeaderText="Ngày thu hồi" DataType="System.DateTime"  DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridDateTimeColumn >--%>
                            <telerik:GridBoundColumn DataField="Comment" HeaderText="Ghi chú của người phê duyệt"
                                HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="45%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsAFExitOther" runat="server" SelectMethod="LoadForViewExitForm_RequestK2"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" CacheExpirationPolicy="Sliding"
                    MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="exitType" ControlID="hdfTest" DbType="Int64" DefaultValue="11" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
                <div class="divClear">
                </div>
            </div>
        </asp:Panel>
    
        <asp:Panel ID="pnlIT" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="LabelIT22" runat="server" CssClass="topicName" Text="2A. PHÒNG CÔNG NGHỆ THÔNG TIN" /></div>
                <div class="divClear">
                </div>
            </div>
            <div>
                <asp:Label ID="lblIT" runat="server" Text="Các tài sản này sẽ bàn giao cho <strong>$Value$</strong>"></asp:Label>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgIT" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" AutoGenerateColumns="False"
                    DataSourceID="dtsITExit" OnItemDataBound="dtgIT_ItemDataBound">
                    <MasterTableView Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Account" HeaderText="Số tiền đưa vào quyết toán (nếu có)"
                                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridDateTimeColumn DataField="FromDate" HeaderText="Ngày cấp phát" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                            <telerik:GridTemplateColumn HeaderText="Ngày thu hồi" DataField="ToDate" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="txtRecoveryDate" HorizontalAlign="Center" Width="100%"
                                        runat="server">
                                    </telerik:RadDatePicker>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="Comment" HeaderText="Ghi chú của người phê duyệt"
                                HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ToDate" HeaderText="Ghi chú của người phê duyệt"
                                HeaderStyle-HorizontalAlign="Center" Visible="false">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsITExit" runat="server" SelectMethod="LoadForViewDMProperty"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" CacheExpirationPolicy="Sliding"
                    MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="typeId" ControlID="hdfTest" DbType="Int64" DefaultValue="1" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
                <div class="divClear">
                </div>
            </div>
        </asp:Panel>
    
        <asp:Panel ID="pnlITOther" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="Label3" runat="server" CssClass="topicName" Text="2B. PHÒNG CÔNG NGHỆ THÔNG TIN (OTHER)" /></div>
                <div class="divClear">
                </div>
            </div>
            <div>
                <asp:Label ID="lblITOther" runat="server" Text="Các tài sản này sẽ bàn giao cho <strong>$Value$</strong>"></asp:Label>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgITOther" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" AutoGenerateColumns="False"
                    DataSourceID="dtsITOther">
                    <MasterTableView Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Account" HeaderText="Số tiền đưa vào quyết toán (nếu có)"
                                DataType="System.Decimal" DataFormatString="{0:###,###}" HeaderStyle-HorizontalAlign="Center"
                                ItemStyle-HorizontalAlign="Right">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <%--<telerik:GridDateTimeColumn DataField="FromDate" HeaderText="Ngày bàn giao" DataType="System.DateTime"
                            DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="100px"></HeaderStyle>
                        </telerik:GridDateTimeColumn>--%>
                            <%--    <telerik:GridDateTimeColumn  DataField="ToDate" HeaderText="Ngày thu hồi" DataType="System.DateTime"  DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridDateTimeColumn >--%>
                            <telerik:GridBoundColumn DataField="Comment" HeaderText="Ghi chú của người phê duyệt"
                                HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="45%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsITOther" runat="server" SelectMethod="LoadForViewExitForm_RequestK2"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" CacheExpirationPolicy="Sliding"
                    MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="exitType" ControlID="hdfTest" DbType="Int64" DefaultValue="12" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
                <div class="divClear">
                </div>
            </div>
        </asp:Panel>
    
        <asp:Panel ID="pnlFAExit" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="Labelh123" runat="server" CssClass="topicName" Text="3A. PHÒNG TÀI CHÍNH & KẾ TOÁN" /></div>
                <div class="divClear">
                </div>
            </div>
            <div>
                <asp:Label ID="lblFAExit" runat="server" Text="Các tài sản này sẽ bàn giao cho <strong>$Value$</strong>"></asp:Label>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgFAExit" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" AutoGenerateColumns="False"
                    DataSourceID="dtsFAExit">
                    <MasterTableView Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Account" HeaderText="Số tiền đưa vào quyết toán (nếu có)"
                                DataType="System.Decimal" DataFormatString="{0:###,###}" HeaderStyle-HorizontalAlign="Center"
                                ItemStyle-HorizontalAlign="Right">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <%--<telerik:GridDateTimeColumn DataField="FromDate" HeaderText="Ngày bàn giao" DataType="System.DateTime"
                            DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="100px"></HeaderStyle>
                        </telerik:GridDateTimeColumn>--%>
                            <telerik:GridBoundColumn DataField="Comment" HeaderText="Ghi chú của người phê duyệt"
                                HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="45%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsFAExit" runat="server" SelectMethod="LoadForViewExitForm_RequestK2"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" CacheExpirationPolicy="Sliding"
                    MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="exitType" ControlID="hdfTest" DbType="Int64" DefaultValue="4" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
                <div class="divClear">
                </div>
            </div>
        </asp:Panel>
    
        <asp:Panel ID="pnlFAExitOther" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="Label4" runat="server" CssClass="topicName" Text="3B. PHÒNG TÀI CHÍNH & KẾ TOÁN (HĐKD)" /></div>
                <div class="divClear">
                </div>
            </div>
            <div>
                <asp:Label ID="lblFAExitOther" runat="server" Text="Các tài sản này sẽ bàn giao cho <strong>$Value$</strong>"></asp:Label>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgFAExitOther" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" AutoGenerateColumns="False"
                    DataSourceID="dtsFAExitOther">
                    <MasterTableView Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Account" HeaderText="Số tiền đưa vào quyết toán (nếu có)"
                                DataType="System.Decimal" DataFormatString="{0:###,###}" HeaderStyle-HorizontalAlign="Center"
                                ItemStyle-HorizontalAlign="Right">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <%--<telerik:GridDateTimeColumn DataField="FromDate" HeaderText="Ngày bàn giao" DataType="System.DateTime"
                            DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="100px"></HeaderStyle>
                        </telerik:GridDateTimeColumn>--%>
                            <%--    <telerik:GridDateTimeColumn  DataField="ToDate" HeaderText="Ngày thu hồi" DataType="System.DateTime"  DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridDateTimeColumn >--%>
                            <telerik:GridBoundColumn DataField="Comment" HeaderText="Ghi chú của người phê duyệt"
                                HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="45%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsFAExitOther" runat="server" SelectMethod="LoadForViewExitForm_RequestK2"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" CacheExpirationPolicy="Sliding"
                    MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="exitType" ControlID="hdfTest" DbType="Int64" DefaultValue="13" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
                <div class="divClear">
                </div>
            </div>
        </asp:Panel>
    
        <asp:Panel ID="pnlHRExit" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="LabelHR" runat="server" CssClass="topicName" Text="4A. PHÒNG NHÂN SỰ" /></div>
                <div class="divClear">
                </div>
            </div>
            <div>
                <asp:Label ID="lblHRExit" runat="server" Text="Các tài sản này sẽ bàn giao cho <strong>$Value$</strong>"></asp:Label>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgHRExit" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" AutoGenerateColumns="False"
                    DataSourceID="dtsHRExit" OnItemDataBound="dtgHRExit_ItemDataBound">
                    <MasterTableView Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Account" HeaderText="Số tiền đưa vào quyết toán (nếu có)"
                                DataType="System.Decimal" DataFormatString="{0:###,###}" HeaderStyle-HorizontalAlign="Center"
                                ItemStyle-HorizontalAlign="Right">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridDateTimeColumn DataField="FromDate" HeaderText="Ngày cấp phát" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                            <telerik:GridTemplateColumn HeaderText="Ngày thu hồi" DataField="ToDate" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="txtRecoveryDate" HorizontalAlign="Center" Width="100%"
                                        runat="server">
                                    </telerik:RadDatePicker>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="Comment" HeaderText="Ghi chú của người phê duyệt"
                                HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ToDate" HeaderText="Ghi chú của người phê duyệt"
                                HeaderStyle-HorizontalAlign="Center" Visible="false">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsHRExit" runat="server" SelectMethod="LoadForViewDMProperty"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" CacheExpirationPolicy="Sliding"
                    MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="typeId" ControlID="hdfTest" DbType="Int64" DefaultValue="3" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
                <div class="divClear">
                </div>
            </div>
        </asp:Panel>
    
        <asp:Panel ID="pnlHRTrainingExit" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="Label1" runat="server" CssClass="topicName" Text="4B. PHÒNG NHÂN SỰ (Training)" /></div>
                <div class="divClear">
                </div>
            </div>
            <div>
                <asp:Label ID="lblHRTrainingExit" runat="server" Text="Các tài sản này sẽ bàn giao cho <strong>$Value$</strong>"></asp:Label>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgHRTrainingExit" runat="server" Skin="Web20" Width="100%"
                    AllowSorting="true" AllowMultiRowSelection="True" GridLines="None" PageSize="2"
                    AutoGenerateColumns="False" DataSourceID="dtsHRTraining">
                    <MasterTableView Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Account" HeaderText="Số tiền đưa vào quyết toán (nếu có)"
                                DataType="System.Decimal" DataFormatString="{0:###,###}" HeaderStyle-HorizontalAlign="Center"
                                ItemStyle-HorizontalAlign="Right">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <%--<telerik:GridDateTimeColumn DataField="FromDate" HeaderText="Ngày bàn giao" DataType="System.DateTime"
                            DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="100px"></HeaderStyle>
                        </telerik:GridDateTimeColumn>--%>
                            <%--    <telerik:GridDateTimeColumn  DataField="ToDate" HeaderText="Ngày thu hồi" DataType="System.DateTime"  DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridDateTimeColumn >--%>
                            <telerik:GridBoundColumn DataField="Comment" HeaderText="Ghi chú của người phê duyệt"
                                HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="45%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsHRTraining" runat="server" SelectMethod="LoadForViewExitForm_RequestK2"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" CacheExpirationPolicy="Sliding"
                    MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="exitType" ControlID="hdfTest" DbType="Int64" DefaultValue="10" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
                <div class="divClear">
                </div>
            </div>
        </asp:Panel>
    
        <asp:Panel ID="pnlHROtherExit" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="LabelHROther" runat="server" CssClass="topicName" Text="4C. PHÒNG NHÂN SỰ (OTHER)" /></div>
                <div class="divClear">
                </div>
            </div>
            <div>
                <asp:Label ID="lblHROtherExit" runat="server" Text="Các tài sản này sẽ bàn giao cho <strong>$Value$</strong>"></asp:Label>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgHROtherExit" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" AutoGenerateColumns="False"
                    DataSourceID="dtsOtherHRExit">
                    <MasterTableView Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Account" HeaderText="Số tiền đưa vào quyết toán (nếu có)"
                                DataType="System.Decimal" DataFormatString="{0:###,###}" HeaderStyle-HorizontalAlign="Center"
                                ItemStyle-HorizontalAlign="Right">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <%--<telerik:GridDateTimeColumn DataField="FromDate" HeaderText="Ngày bàn giao" DataType="System.DateTime"
                            DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="100px"></HeaderStyle>
                        </telerik:GridDateTimeColumn>--%>
                            <%--    <telerik:GridDateTimeColumn  DataField="ToDate" HeaderText="Ngày thu hồi" DataType="System.DateTime"  DataFormatString="ddMMyyyy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridDateTimeColumn >--%>
                            <telerik:GridBoundColumn DataField="Comment" HeaderText="Ghi chú của người phê duyệt"
                                HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="45%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsOtherHRExit" runat="server" SelectMethod="LoadForViewExitForm_RequestK2"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" CacheExpirationPolicy="Sliding"
                    MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="exitType" ControlID="hdfTest" DbType="Int64" DefaultValue="8" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
                <div class="divClear">
                </div>
            </div>
        </asp:Panel>
    </div>
    <div class="formTitle">
        <div class="formToolbar">
            <asp:Button ID="btnBottomApprove" runat="server" Text="Gửi phê duyệt" CssClass="btnSubmit"
                OnClick="btnTopApprove_Click" ValidationGroup="Save" />
            <%--<asp:Button ID="btnBottomExport" runat="server" Text="Xuất DL" CssClass="btnExport"
                OnClick="btnBottomExport_Click" />--%>
        </div>
    </div>
    <telerik:RadCodeBlock ID="radCodeBlock" runat="server">
        <script type="text/javascript">
            function ClosePage() {
                var win = new WindowManager().GetRadWindow();
                win.close();
            }

            function LoadMaximize() {
                try {
                    var win = new WindowManager().GetRadWindow();
                    if (win != null) {
                        win.maximize();
                    }
                }
                catch (err) {
                }
            }

            function CheckConsult() {
                var rad_y = document.getElementById("<%= radConsult_Y.ClientID %>");
                var rad_n = document.getElementById("<%= radConsult_N.ClientID %>");
                var div = document.getElementById("divConsult");
                if (rad_y.checked == true) {
                    div.style.display = "block";
                }
                else {
                    div.style.display = "none";
                }
            }
        </script>
    </telerik:RadCodeBlock>
</asp:Content>
